<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Fonts</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Pango Reference Manual">
<link rel="up" href="pango.html" title="Basic Pango Interfaces">
<link rel="prev" href="pango-Glyph-Storage.html" title="Glyph Storage">
<link rel="next" href="pango-Text-Attributes.html" title="Text Attributes">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="pango-Glyph-Storage.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="pango.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Pango Reference Manual</th>
<td><a accesskey="n" href="pango-Text-Attributes.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#pango-Fonts.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#pango-Fonts.description" class="shortcut">Description</a>
                   | 
                  <a href="#pango-Fonts.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#pango-Fonts.derived-interfaces" class="shortcut">Known Derived Interfaces</a>
</td></tr>
</table>
<div class="refentry">
<a name="pango-Fonts"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="pango-Fonts.top_of_page"></a>Fonts</span></h2>
<p>Fonts — Structures representing abstract fonts</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="pango-Fonts.synopsis"></a><h2>Synopsis</h2>
<a name="PangoFontDescription"></a><a name="PangoStyle"></a><a name="PangoWeight"></a><a name="PangoVariant"></a><a name="PangoStretch"></a><a name="PangoFontMask"></a><a name="PangoFontMetrics"></a><a name="PangoFont"></a><a name="PangoFontFamily"></a><a name="PangoFontFace"></a><a name="PangoFontMap"></a><a name="PangoFontset"></a><a name="PangoFontsetSimple"></a><pre class="synopsis">                    <a class="link" href="pango-Fonts.html#PangoFontDescription-struct" title="PangoFontDescription">PangoFontDescription</a>;
#define             <a class="link" href="pango-Fonts.html#PANGO-TYPE-FONT-DESCRIPTION:CAPS" title="PANGO_TYPE_FONT_DESCRIPTION">PANGO_TYPE_FONT_DESCRIPTION</a>
enum                <a class="link" href="pango-Fonts.html#PangoStyle-enum" title="enum PangoStyle">PangoStyle</a>;
#define             <a class="link" href="pango-Fonts.html#PANGO-TYPE-STYLE:CAPS" title="PANGO_TYPE_STYLE">PANGO_TYPE_STYLE</a>
enum                <a class="link" href="pango-Fonts.html#PangoWeight-enum" title="enum PangoWeight">PangoWeight</a>;
#define             <a class="link" href="pango-Fonts.html#PANGO-TYPE-WEIGHT:CAPS" title="PANGO_TYPE_WEIGHT">PANGO_TYPE_WEIGHT</a>
enum                <a class="link" href="pango-Fonts.html#PangoVariant-enum" title="enum PangoVariant">PangoVariant</a>;
#define             <a class="link" href="pango-Fonts.html#PANGO-TYPE-VARIANT:CAPS" title="PANGO_TYPE_VARIANT">PANGO_TYPE_VARIANT</a>
enum                <a class="link" href="pango-Fonts.html#PangoStretch-enum" title="enum PangoStretch">PangoStretch</a>;
#define             <a class="link" href="pango-Fonts.html#PANGO-TYPE-STRETCH:CAPS" title="PANGO_TYPE_STRETCH">PANGO_TYPE_STRETCH</a>
enum                <a class="link" href="pango-Fonts.html#PangoFontMask-enum" title="enum PangoFontMask">PangoFontMask</a>;
#define             <a class="link" href="pango-Fonts.html#PANGO-TYPE-FONT-MASK:CAPS" title="PANGO_TYPE_FONT_MASK">PANGO_TYPE_FONT_MASK</a>
<a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * <a class="link" href="pango-Fonts.html#pango-font-description-new" title="pango_font_description_new ()">pango_font_description_new</a>       (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * <a class="link" href="pango-Fonts.html#pango-font-description-copy" title="pango_font_description_copy ()">pango_font_description_copy</a>      (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);
<a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * <a class="link" href="pango-Fonts.html#pango-font-description-copy-static" title="pango_font_description_copy_static ()">pango_font_description_copy_static</a>
                                                        (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>               <a class="link" href="pango-Fonts.html#pango-font-description-hash" title="pango_font_description_hash ()">pango_font_description_hash</a>         (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="pango-Fonts.html#pango-font-description-equal" title="pango_font_description_equal ()">pango_font_description_equal</a>        (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc1</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc2</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="pango-Fonts.html#pango-font-description-free" title="pango_font_description_free ()">pango_font_description_free</a>         (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="pango-Fonts.html#pango-font-descriptions-free" title="pango_font_descriptions_free ()">pango_font_descriptions_free</a>        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> **descs</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> n_descs</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="pango-Fonts.html#pango-font-description-set-family" title="pango_font_description_set_family ()">pango_font_description_set_family</a>   (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *family</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="pango-Fonts.html#pango-font-description-set-family-static" title="pango_font_description_set_family_static ()">pango_font_description_set_family_static</a>
                                                        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *family</code></em>);
const <span class="returnvalue">char</span> *        <a class="link" href="pango-Fonts.html#pango-font-description-get-family" title="pango_font_description_get_family ()">pango_font_description_get_family</a>   (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="pango-Fonts.html#pango-font-description-set-style" title="pango_font_description_set_style ()">pango_font_description_set_style</a>    (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoStyle"><span class="type">PangoStyle</span></a> style</code></em>);
<a class="link" href="pango-Fonts.html#PangoStyle"><span class="returnvalue">PangoStyle</span></a>          <a class="link" href="pango-Fonts.html#pango-font-description-get-style" title="pango_font_description_get_style ()">pango_font_description_get_style</a>    (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="pango-Fonts.html#pango-font-description-set-variant" title="pango_font_description_set_variant ()">pango_font_description_set_variant</a>  (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoVariant"><span class="type">PangoVariant</span></a> variant</code></em>);
<a class="link" href="pango-Fonts.html#PangoVariant"><span class="returnvalue">PangoVariant</span></a>        <a class="link" href="pango-Fonts.html#pango-font-description-get-variant" title="pango_font_description_get_variant ()">pango_font_description_get_variant</a>  (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="pango-Fonts.html#pango-font-description-set-weight" title="pango_font_description_set_weight ()">pango_font_description_set_weight</a>   (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoWeight"><span class="type">PangoWeight</span></a> weight</code></em>);
<a class="link" href="pango-Fonts.html#PangoWeight"><span class="returnvalue">PangoWeight</span></a>         <a class="link" href="pango-Fonts.html#pango-font-description-get-weight" title="pango_font_description_get_weight ()">pango_font_description_get_weight</a>   (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="pango-Fonts.html#pango-font-description-set-stretch" title="pango_font_description_set_stretch ()">pango_font_description_set_stretch</a>  (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoStretch"><span class="type">PangoStretch</span></a> stretch</code></em>);
<a class="link" href="pango-Fonts.html#PangoStretch"><span class="returnvalue">PangoStretch</span></a>        <a class="link" href="pango-Fonts.html#pango-font-description-get-stretch" title="pango_font_description_get_stretch ()">pango_font_description_get_stretch</a>  (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="pango-Fonts.html#pango-font-description-set-size" title="pango_font_description_set_size ()">pango_font_description_set_size</a>     (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> size</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="pango-Fonts.html#pango-font-description-get-size" title="pango_font_description_get_size ()">pango_font_description_get_size</a>     (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="pango-Fonts.html#pango-font-description-set-absolute-size" title="pango_font_description_set_absolute_size ()">pango_font_description_set_absolute_size</a>
                                                        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> size</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="pango-Fonts.html#pango-font-description-get-size-is-absolute" title="pango_font_description_get_size_is_absolute ()">pango_font_description_get_size_is_absolute</a>
                                                        (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="pango-Fonts.html#pango-font-description-set-gravity" title="pango_font_description_set_gravity ()">pango_font_description_set_gravity</a>  (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="type">PangoGravity</span></a> gravity</code></em>);
<a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="returnvalue">PangoGravity</span></a>        <a class="link" href="pango-Fonts.html#pango-font-description-get-gravity" title="pango_font_description_get_gravity ()">pango_font_description_get_gravity</a>  (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);
<a class="link" href="pango-Fonts.html#PangoFontMask"><span class="returnvalue">PangoFontMask</span></a>       <a class="link" href="pango-Fonts.html#pango-font-description-get-set-fields" title="pango_font_description_get_set_fields ()">pango_font_description_get_set_fields</a>
                                                        (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="pango-Fonts.html#pango-font-description-unset-fields" title="pango_font_description_unset_fields ()">pango_font_description_unset_fields</a> (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMask"><span class="type">PangoFontMask</span></a> to_unset</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="pango-Fonts.html#pango-font-description-merge" title="pango_font_description_merge ()">pango_font_description_merge</a>        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc_to_merge</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> replace_existing</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="pango-Fonts.html#pango-font-description-merge-static" title="pango_font_description_merge_static ()">pango_font_description_merge_static</a> (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc_to_merge</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> replace_existing</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="pango-Fonts.html#pango-font-description-better-match" title="pango_font_description_better_match ()">pango_font_description_better_match</a> (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *old_match</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *new_match</code></em>);
<a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * <a class="link" href="pango-Fonts.html#pango-font-description-from-string" title="pango_font_description_from_string ()">pango_font_description_from_string</a>
                                                        (<em class="parameter"><code>const <span class="type">char</span> *str</code></em>);
<span class="returnvalue">char</span> *              <a class="link" href="pango-Fonts.html#pango-font-description-to-string" title="pango_font_description_to_string ()">pango_font_description_to_string</a>    (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);
<span class="returnvalue">char</span> *              <a class="link" href="pango-Fonts.html#pango-font-description-to-filename" title="pango_font_description_to_filename ()">pango_font_description_to_filename</a>  (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);

struct              <a class="link" href="pango-Fonts.html#PangoFontMetrics-struct" title="struct PangoFontMetrics">PangoFontMetrics</a>;
#define             <a class="link" href="pango-Fonts.html#PANGO-TYPE-FONT-METRICS:CAPS" title="PANGO_TYPE_FONT_METRICS">PANGO_TYPE_FONT_METRICS</a>
<a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="returnvalue">PangoFontMetrics</span></a> *  <a class="link" href="pango-Fonts.html#pango-font-metrics-ref" title="pango_font_metrics_ref ()">pango_font_metrics_ref</a>              (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> *metrics</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="pango-Fonts.html#pango-font-metrics-unref" title="pango_font_metrics_unref ()">pango_font_metrics_unref</a>            (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> *metrics</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="pango-Fonts.html#pango-font-metrics-get-ascent" title="pango_font_metrics_get_ascent ()">pango_font_metrics_get_ascent</a>       (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> *metrics</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="pango-Fonts.html#pango-font-metrics-get-descent" title="pango_font_metrics_get_descent ()">pango_font_metrics_get_descent</a>      (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> *metrics</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="pango-Fonts.html#pango-font-metrics-get-approximate-char-width" title="pango_font_metrics_get_approximate_char_width ()">pango_font_metrics_get_approximate_char_width</a>
                                                        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> *metrics</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="pango-Fonts.html#pango-font-metrics-get-approximate-digit-width" title="pango_font_metrics_get_approximate_digit_width ()">pango_font_metrics_get_approximate_digit_width</a>
                                                        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> *metrics</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="pango-Fonts.html#pango-font-metrics-get-underline-thickness" title="pango_font_metrics_get_underline_thickness ()">pango_font_metrics_get_underline_thickness</a>
                                                        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> *metrics</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="pango-Fonts.html#pango-font-metrics-get-underline-position" title="pango_font_metrics_get_underline_position ()">pango_font_metrics_get_underline_position</a>
                                                        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> *metrics</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="pango-Fonts.html#pango-font-metrics-get-strikethrough-thickness" title="pango_font_metrics_get_strikethrough_thickness ()">pango_font_metrics_get_strikethrough_thickness</a>
                                                        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> *metrics</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="pango-Fonts.html#pango-font-metrics-get-strikethrough-position" title="pango_font_metrics_get_strikethrough_position ()">pango_font_metrics_get_strikethrough_position</a>
                                                        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> *metrics</code></em>);

                    <a class="link" href="pango-Fonts.html#PangoFont-struct" title="PangoFont">PangoFont</a>;
#define             <a class="link" href="pango-Fonts.html#PANGO-TYPE-FONT:CAPS" title="PANGO_TYPE_FONT">PANGO_TYPE_FONT</a>
#define             <a class="link" href="pango-Fonts.html#PANGO-FONT:CAPS" title="PANGO_FONT()">PANGO_FONT</a>                          (object)
#define             <a class="link" href="pango-Fonts.html#PANGO-IS-FONT:CAPS" title="PANGO_IS_FONT()">PANGO_IS_FONT</a>                       (object)
<a class="link" href="PangoEngineShape.html" title="PangoEngineShape"><span class="returnvalue">PangoEngineShape</span></a> *  <a class="link" href="pango-Fonts.html#pango-font-find-shaper" title="pango_font_find_shaper ()">pango_font_find_shaper</a>              (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> ch</code></em>);
<a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * <a class="link" href="pango-Fonts.html#pango-font-describe" title="pango_font_describe ()">pango_font_describe</a>              (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>);
<a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * <a class="link" href="pango-Fonts.html#pango-font-describe-with-absolute-size" title="pango_font_describe_with_absolute_size ()">pango_font_describe_with_absolute_size</a>
                                                        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>);
<a class="link" href="pango-Coverage-Maps.html#PangoCoverage" title="PangoCoverage"><span class="returnvalue">PangoCoverage</span></a> *     <a class="link" href="pango-Fonts.html#pango-font-get-coverage" title="pango_font_get_coverage ()">pango_font_get_coverage</a>             (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="pango-Fonts.html#pango-font-get-glyph-extents" title="pango_font_get_glyph_extents ()">pango_font_get_glyph_extents</a>        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph"><span class="type">PangoGlyph</span></a> glyph</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);
<a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="returnvalue">PangoFontMetrics</span></a> *  <a class="link" href="pango-Fonts.html#pango-font-get-metrics" title="pango_font_get_metrics ()">pango_font_get_metrics</a>              (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>);
<a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> *      <a class="link" href="pango-Fonts.html#pango-font-get-font-map" title="pango_font_get_font_map ()">pango_font_get_font_map</a>             (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>);

struct              <a class="link" href="pango-Fonts.html#PangoFontFamily-struct" title="struct PangoFontFamily">PangoFontFamily</a>;
#define             <a class="link" href="pango-Fonts.html#PANGO-TYPE-FONT-FAMILY:CAPS" title="PANGO_TYPE_FONT_FAMILY">PANGO_TYPE_FONT_FAMILY</a>
#define             <a class="link" href="pango-Fonts.html#PANGO-FONT-FAMILY:CAPS" title="PANGO_FONT_FAMILY()">PANGO_FONT_FAMILY</a>                   (object)
#define             <a class="link" href="pango-Fonts.html#PANGO-IS-FONT-FAMILY:CAPS" title="PANGO_IS_FONT_FAMILY()">PANGO_IS_FONT_FAMILY</a>                (object)
const <span class="returnvalue">char</span> *        <a class="link" href="pango-Fonts.html#pango-font-family-get-name" title="pango_font_family_get_name ()">pango_font_family_get_name</a>          (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontFamily"><span class="type">PangoFontFamily</span></a> *family</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="pango-Fonts.html#pango-font-family-is-monospace" title="pango_font_family_is_monospace ()">pango_font_family_is_monospace</a>      (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontFamily"><span class="type">PangoFontFamily</span></a> *family</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="pango-Fonts.html#pango-font-family-list-faces" title="pango_font_family_list_faces ()">pango_font_family_list_faces</a>        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontFamily"><span class="type">PangoFontFamily</span></a> *family</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontFace"><span class="type">PangoFontFace</span></a> ***faces</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *n_faces</code></em>);

struct              <a class="link" href="pango-Fonts.html#PangoFontFace-struct" title="struct PangoFontFace">PangoFontFace</a>;
#define             <a class="link" href="pango-Fonts.html#PANGO-TYPE-FONT-FACE:CAPS" title="PANGO_TYPE_FONT_FACE">PANGO_TYPE_FONT_FACE</a>
#define             <a class="link" href="pango-Fonts.html#PANGO-FONT-FACE:CAPS" title="PANGO_FONT_FACE()">PANGO_FONT_FACE</a>                     (object)
#define             <a class="link" href="pango-Fonts.html#PANGO-IS-FONT-FACE:CAPS" title="PANGO_IS_FONT_FACE()">PANGO_IS_FONT_FACE</a>                  (object)
const <span class="returnvalue">char</span> *        <a class="link" href="pango-Fonts.html#pango-font-face-get-face-name" title="pango_font_face_get_face_name ()">pango_font_face_get_face_name</a>       (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontFace"><span class="type">PangoFontFace</span></a> *face</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="pango-Fonts.html#pango-font-face-list-sizes" title="pango_font_face_list_sizes ()">pango_font_face_list_sizes</a>          (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontFace"><span class="type">PangoFontFace</span></a> *face</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> **sizes</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *n_sizes</code></em>);
<a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * <a class="link" href="pango-Fonts.html#pango-font-face-describe" title="pango_font_face_describe ()">pango_font_face_describe</a>         (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontFace"><span class="type">PangoFontFace</span></a> *face</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="pango-Fonts.html#pango-font-face-is-synthesized" title="pango_font_face_is_synthesized ()">pango_font_face_is_synthesized</a>      (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontFace"><span class="type">PangoFontFace</span></a> *face</code></em>);

                    <a class="link" href="pango-Fonts.html#PangoFontMap-struct" title="PangoFontMap">PangoFontMap</a>;
#define             <a class="link" href="pango-Fonts.html#PANGO-TYPE-FONT-MAP:CAPS" title="PANGO_TYPE_FONT_MAP">PANGO_TYPE_FONT_MAP</a>
#define             <a class="link" href="pango-Fonts.html#PANGO-FONT-MAP:CAPS" title="PANGO_FONT_MAP()">PANGO_FONT_MAP</a>                      (object)
#define             <a class="link" href="pango-Fonts.html#PANGO-IS-FONT-MAP:CAPS" title="PANGO_IS_FONT_MAP()">PANGO_IS_FONT_MAP</a>                   (object)
struct              <a class="link" href="pango-Fonts.html#PangoFontMapClass" title="struct PangoFontMapClass">PangoFontMapClass</a>;
#define             <a class="link" href="pango-Fonts.html#PANGO-FONT-MAP-CLASS:CAPS" title="PANGO_FONT_MAP_CLASS()">PANGO_FONT_MAP_CLASS</a>                (klass)
#define             <a class="link" href="pango-Fonts.html#PANGO-IS-FONT-MAP-CLASS:CAPS" title="PANGO_IS_FONT_MAP_CLASS()">PANGO_IS_FONT_MAP_CLASS</a>             (klass)
#define             <a class="link" href="pango-Fonts.html#PANGO-FONT-MAP-GET-CLASS:CAPS" title="PANGO_FONT_MAP_GET_CLASS()">PANGO_FONT_MAP_GET_CLASS</a>            (obj)
<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> *      <a class="link" href="pango-Fonts.html#pango-font-map-create-context" title="pango_font_map_create_context ()">pango_font_map_create_context</a>       (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> *fontmap</code></em>);
<a class="link" href="pango-Fonts.html#PangoFont"><span class="returnvalue">PangoFont</span></a> *         <a class="link" href="pango-Fonts.html#pango-font-map-load-font" title="pango_font_map_load_font ()">pango_font_map_load_font</a>            (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> *fontmap</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);
<a class="link" href="pango-Fonts.html#PangoFontset"><span class="returnvalue">PangoFontset</span></a> *      <a class="link" href="pango-Fonts.html#pango-font-map-load-fontset" title="pango_font_map_load_fontset ()">pango_font_map_load_fontset</a>         (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> *fontmap</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="pango-Fonts.html#pango-font-map-list-families" title="pango_font_map_list_families ()">pango_font_map_list_families</a>        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> *fontmap</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontFamily"><span class="type">PangoFontFamily</span></a> ***families</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *n_families</code></em>);
const <span class="returnvalue">char</span> *        <a class="link" href="pango-Fonts.html#pango-font-map-get-shape-engine-type" title="pango_font_map_get_shape_engine_type ()">pango_font_map_get_shape_engine_type</a>
                                                        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> *fontmap</code></em>);

struct              <a class="link" href="pango-Fonts.html#PangoFontset-struct" title="struct PangoFontset">PangoFontset</a>;
#define             <a class="link" href="pango-Fonts.html#PANGO-TYPE-FONTSET:CAPS" title="PANGO_TYPE_FONTSET">PANGO_TYPE_FONTSET</a>
struct              <a class="link" href="pango-Fonts.html#PangoFontsetClass" title="struct PangoFontsetClass">PangoFontsetClass</a>;
<a class="link" href="pango-Fonts.html#PangoFont"><span class="returnvalue">PangoFont</span></a> *         <a class="link" href="pango-Fonts.html#pango-fontset-get-font" title="pango_fontset_get_font ()">pango_fontset_get_font</a>              (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontset"><span class="type">PangoFontset</span></a> *fontset</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> wc</code></em>);
<a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="returnvalue">PangoFontMetrics</span></a> *  <a class="link" href="pango-Fonts.html#pango-fontset-get-metrics" title="pango_fontset_get_metrics ()">pango_fontset_get_metrics</a>           (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontset"><span class="type">PangoFontset</span></a> *fontset</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            (<a class="link" href="pango-Fonts.html#PangoFontsetForeachFunc" title="PangoFontsetForeachFunc ()">*PangoFontsetForeachFunc</a>)          (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontset"><span class="type">PangoFontset</span></a> *fontset</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="pango-Fonts.html#pango-fontset-foreach" title="pango_fontset_foreach ()">pango_fontset_foreach</a>               (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontset"><span class="type">PangoFontset</span></a> *fontset</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontsetForeachFunc" title="PangoFontsetForeachFunc ()"><span class="type">PangoFontsetForeachFunc</span></a> func</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);
                    <a class="link" href="pango-Fonts.html#PangoFontsetSimple-struct" title="PangoFontsetSimple">PangoFontsetSimple</a>;
#define             <a class="link" href="pango-Fonts.html#PANGO-TYPE-FONTSET-SIMPLE:CAPS" title="PANGO_TYPE_FONTSET_SIMPLE">PANGO_TYPE_FONTSET_SIMPLE</a>
<a class="link" href="pango-Fonts.html#PangoFontsetSimple"><span class="returnvalue">PangoFontsetSimple</span></a> * <a class="link" href="pango-Fonts.html#pango-fontset-simple-new" title="pango_fontset_simple_new ()">pango_fontset_simple_new</a>           (<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="pango-Fonts.html#pango-fontset-simple-append" title="pango_fontset_simple_append ()">pango_fontset_simple_append</a>         (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontsetSimple"><span class="type">PangoFontsetSimple</span></a> *fontset</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="pango-Fonts.html#pango-fontset-simple-size" title="pango_fontset_simple_size ()">pango_fontset_simple_size</a>           (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontsetSimple"><span class="type">PangoFontsetSimple</span></a> *fontset</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="pango-Fonts.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  GBoxed
   +----PangoFontDescription
</pre>
<pre class="synopsis">
  GEnum
   +----PangoStyle
</pre>
<pre class="synopsis">
  GEnum
   +----PangoWeight
</pre>
<pre class="synopsis">
  GEnum
   +----PangoVariant
</pre>
<pre class="synopsis">
  GEnum
   +----PangoStretch
</pre>
<pre class="synopsis">
  GFlags
   +----PangoFontMask
</pre>
<pre class="synopsis">
  GBoxed
   +----PangoFontMetrics
</pre>
<pre class="synopsis">
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
   +----PangoFont
         +----<a class="link" href="PangoFcFont.html" title="PangoFcFont">PangoFcFont</a>
</pre>
<pre class="synopsis">
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
   +----PangoFontFamily
</pre>
<pre class="synopsis">
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
   +----PangoFontFace
</pre>
<pre class="synopsis">
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
   +----PangoFontMap
         +----<a class="link" href="PangoFcFontMap.html" title="PangoFcFontMap">PangoFcFontMap</a>
</pre>
<pre class="synopsis">
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
   +----PangoFontset
         +----<a class="link" href="pango-Fonts.html#PangoFontsetSimple">PangoFontsetSimple</a>
</pre>
<pre class="synopsis">
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
   +----<a class="link" href="pango-Fonts.html#PangoFontset">PangoFontset</a>
         +----PangoFontsetSimple
</pre>
</div>
<div class="refsect1">
<a name="pango-Fonts.derived-interfaces"></a><h2>Known Derived Interfaces</h2>
<p>
PangoFont is required by
 <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFont">PangoCairoFont</a>.</p>
<p>
PangoFontMap is required by
 <a class="link" href="pango-Cairo-Rendering.html#PangoCairoFontMap">PangoCairoFontMap</a>.</p>
</div>
<div class="refsect1">
<a name="pango-Fonts.description"></a><h2>Description</h2>
<p>
Pango supports a flexible architecture where a
particular rendering architecture can supply an
implementation of fonts. The <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> structure
represents an abstract rendering-system-independent font.
Pango provides routines to list available fonts, and
to load a font of a given description.
</p>
</div>
<div class="refsect1">
<a name="pango-Fonts.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="PangoFontDescription-struct"></a><h3>PangoFontDescription</h3>
<pre class="programlisting">typedef struct _PangoFontDescription PangoFontDescription;</pre>
<p>
The <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> structure represents the description
of an ideal font. These structures are used both to list
what fonts are available on the system and also for specifying
the characteristics of a font to load.
</p>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-TYPE-FONT-DESCRIPTION:CAPS"></a><h3>PANGO_TYPE_FONT_DESCRIPTION</h3>
<pre class="programlisting">#define PANGO_TYPE_FONT_DESCRIPTION (pango_font_description_get_type ())
</pre>
<p>
The <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="PangoStyle-enum"></a><h3>enum PangoStyle</h3>
<pre class="programlisting">typedef enum {
  PANGO_STYLE_NORMAL,
  PANGO_STYLE_OBLIQUE,
  PANGO_STYLE_ITALIC
} PangoStyle;
</pre>
<p>
An enumeration specifying the various slant styles possible for a font.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="PANGO-STYLE-NORMAL:CAPS"></a><span class="term"><code class="literal">PANGO_STYLE_NORMAL</code></span></p></td>
<td>the font is upright.
</td>
</tr>
<tr>
<td><p><a name="PANGO-STYLE-OBLIQUE:CAPS"></a><span class="term"><code class="literal">PANGO_STYLE_OBLIQUE</code></span></p></td>
<td>the font is slanted, but in a roman style.
</td>
</tr>
<tr>
<td><p><a name="PANGO-STYLE-ITALIC:CAPS"></a><span class="term"><code class="literal">PANGO_STYLE_ITALIC</code></span></p></td>
<td>the font is slanted in an italic style.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-TYPE-STYLE:CAPS"></a><h3>PANGO_TYPE_STYLE</h3>
<pre class="programlisting">#define PANGO_TYPE_STYLE (pango_style_get_type())
</pre>
<p>
The <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Fonts.html#PangoStyle"><span class="type">PangoStyle</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="PangoWeight-enum"></a><h3>enum PangoWeight</h3>
<pre class="programlisting">typedef enum {
  PANGO_WEIGHT_THIN = 100,
  PANGO_WEIGHT_ULTRALIGHT = 200,
  PANGO_WEIGHT_LIGHT = 300,
  PANGO_WEIGHT_BOOK = 380,
  PANGO_WEIGHT_NORMAL = 400,
  PANGO_WEIGHT_MEDIUM = 500,
  PANGO_WEIGHT_SEMIBOLD = 600,
  PANGO_WEIGHT_BOLD = 700,
  PANGO_WEIGHT_ULTRABOLD = 800,
  PANGO_WEIGHT_HEAVY = 900,
  PANGO_WEIGHT_ULTRAHEAVY = 1000
} PangoWeight;
</pre>
<p>
An enumeration specifying the weight (boldness) of a font. This is a numerical
value ranging from 100 to 900, but there are some predefined values:
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="PANGO-WEIGHT-THIN:CAPS"></a><span class="term"><code class="literal">PANGO_WEIGHT_THIN</code></span></p></td>
<td>the thin weight (= 100; Since: 1.24)
</td>
</tr>
<tr>
<td><p><a name="PANGO-WEIGHT-ULTRALIGHT:CAPS"></a><span class="term"><code class="literal">PANGO_WEIGHT_ULTRALIGHT</code></span></p></td>
<td>the ultralight weight (= 200)
</td>
</tr>
<tr>
<td><p><a name="PANGO-WEIGHT-LIGHT:CAPS"></a><span class="term"><code class="literal">PANGO_WEIGHT_LIGHT</code></span></p></td>
<td>the light weight (= 300)
</td>
</tr>
<tr>
<td><p><a name="PANGO-WEIGHT-BOOK:CAPS"></a><span class="term"><code class="literal">PANGO_WEIGHT_BOOK</code></span></p></td>
<td>the book weight (= 380; Since: 1.24)
</td>
</tr>
<tr>
<td><p><a name="PANGO-WEIGHT-NORMAL:CAPS"></a><span class="term"><code class="literal">PANGO_WEIGHT_NORMAL</code></span></p></td>
<td>the default weight (= 400)
</td>
</tr>
<tr>
<td><p><a name="PANGO-WEIGHT-MEDIUM:CAPS"></a><span class="term"><code class="literal">PANGO_WEIGHT_MEDIUM</code></span></p></td>
<td>the normal weight (= 500; Since: 1.24)
</td>
</tr>
<tr>
<td><p><a name="PANGO-WEIGHT-SEMIBOLD:CAPS"></a><span class="term"><code class="literal">PANGO_WEIGHT_SEMIBOLD</code></span></p></td>
<td>the semibold weight (= 600)
</td>
</tr>
<tr>
<td><p><a name="PANGO-WEIGHT-BOLD:CAPS"></a><span class="term"><code class="literal">PANGO_WEIGHT_BOLD</code></span></p></td>
<td>the bold weight (= 700)
</td>
</tr>
<tr>
<td><p><a name="PANGO-WEIGHT-ULTRABOLD:CAPS"></a><span class="term"><code class="literal">PANGO_WEIGHT_ULTRABOLD</code></span></p></td>
<td>the ultrabold weight (= 800)
</td>
</tr>
<tr>
<td><p><a name="PANGO-WEIGHT-HEAVY:CAPS"></a><span class="term"><code class="literal">PANGO_WEIGHT_HEAVY</code></span></p></td>
<td>the heavy weight (= 900)
</td>
</tr>
<tr>
<td><p><a name="PANGO-WEIGHT-ULTRAHEAVY:CAPS"></a><span class="term"><code class="literal">PANGO_WEIGHT_ULTRAHEAVY</code></span></p></td>
<td>the ultraheavy weight (= 1000; Since: 1.24)
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-TYPE-WEIGHT:CAPS"></a><h3>PANGO_TYPE_WEIGHT</h3>
<pre class="programlisting">#define PANGO_TYPE_WEIGHT (pango_weight_get_type())
</pre>
<p>
The <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Fonts.html#PangoWeight"><span class="type">PangoWeight</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="PangoVariant-enum"></a><h3>enum PangoVariant</h3>
<pre class="programlisting">typedef enum {
  PANGO_VARIANT_NORMAL,
  PANGO_VARIANT_SMALL_CAPS
} PangoVariant;
</pre>
<p>
An enumeration specifying capitalization variant of the font.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="PANGO-VARIANT-NORMAL:CAPS"></a><span class="term"><code class="literal">PANGO_VARIANT_NORMAL</code></span></p></td>
<td>A normal font.
</td>
</tr>
<tr>
<td><p><a name="PANGO-VARIANT-SMALL-CAPS"></a><span class="term"><code class="literal">PANGO_VARIANT_SMALL_CAPS</code></span></p></td>
<td>A font with the lower case characters
  replaced by smaller variants of the capital characters.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-TYPE-VARIANT:CAPS"></a><h3>PANGO_TYPE_VARIANT</h3>
<pre class="programlisting">#define PANGO_TYPE_VARIANT (pango_variant_get_type())
</pre>
<p>
The <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Fonts.html#PangoVariant"><span class="type">PangoVariant</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="PangoStretch-enum"></a><h3>enum PangoStretch</h3>
<pre class="programlisting">typedef enum {
  PANGO_STRETCH_ULTRA_CONDENSED,
  PANGO_STRETCH_EXTRA_CONDENSED,
  PANGO_STRETCH_CONDENSED,
  PANGO_STRETCH_SEMI_CONDENSED,
  PANGO_STRETCH_NORMAL,
  PANGO_STRETCH_SEMI_EXPANDED,
  PANGO_STRETCH_EXPANDED,
  PANGO_STRETCH_EXTRA_EXPANDED,
  PANGO_STRETCH_ULTRA_EXPANDED
} PangoStretch;
</pre>
<p>
An enumeration specifying the width of the font relative to other designs
within a family.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="PANGO-STRETCH-ULTRA-CONDENSED:CAPS"></a><span class="term"><code class="literal">PANGO_STRETCH_ULTRA_CONDENSED</code></span></p></td>
<td>ultra condensed width
</td>
</tr>
<tr>
<td><p><a name="PANGO-STRETCH-EXTRA-CONDENSED:CAPS"></a><span class="term"><code class="literal">PANGO_STRETCH_EXTRA_CONDENSED</code></span></p></td>
<td>extra condensed width
</td>
</tr>
<tr>
<td><p><a name="PANGO-STRETCH-CONDENSED:CAPS"></a><span class="term"><code class="literal">PANGO_STRETCH_CONDENSED</code></span></p></td>
<td>condensed width
</td>
</tr>
<tr>
<td><p><a name="PANGO-STRETCH-SEMI-CONDENSED:CAPS"></a><span class="term"><code class="literal">PANGO_STRETCH_SEMI_CONDENSED</code></span></p></td>
<td>semi condensed width
</td>
</tr>
<tr>
<td><p><a name="PANGO-STRETCH-NORMAL:CAPS"></a><span class="term"><code class="literal">PANGO_STRETCH_NORMAL</code></span></p></td>
<td>the normal width
</td>
</tr>
<tr>
<td><p><a name="PANGO-STRETCH-SEMI-EXPANDED:CAPS"></a><span class="term"><code class="literal">PANGO_STRETCH_SEMI_EXPANDED</code></span></p></td>
<td>semi expanded width
</td>
</tr>
<tr>
<td><p><a name="PANGO-STRETCH-EXPANDED:CAPS"></a><span class="term"><code class="literal">PANGO_STRETCH_EXPANDED</code></span></p></td>
<td>expanded width
</td>
</tr>
<tr>
<td><p><a name="PANGO-STRETCH-EXTRA-EXPANDED:CAPS"></a><span class="term"><code class="literal">PANGO_STRETCH_EXTRA_EXPANDED</code></span></p></td>
<td>extra expanded width
</td>
</tr>
<tr>
<td><p><a name="PANGO-STRETCH-ULTRA-EXPANDED:CAPS"></a><span class="term"><code class="literal">PANGO_STRETCH_ULTRA_EXPANDED</code></span></p></td>
<td>ultra expanded width
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-TYPE-STRETCH:CAPS"></a><h3>PANGO_TYPE_STRETCH</h3>
<pre class="programlisting">#define PANGO_TYPE_STRETCH (pango_stretch_get_type())
</pre>
<p>
The <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Fonts.html#PangoStretch"><span class="type">PangoStretch</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="PangoFontMask-enum"></a><h3>enum PangoFontMask</h3>
<pre class="programlisting">typedef enum {
  PANGO_FONT_MASK_FAMILY  = 1 &lt;&lt; 0,
  PANGO_FONT_MASK_STYLE   = 1 &lt;&lt; 1,
  PANGO_FONT_MASK_VARIANT = 1 &lt;&lt; 2,
  PANGO_FONT_MASK_WEIGHT  = 1 &lt;&lt; 3,
  PANGO_FONT_MASK_STRETCH = 1 &lt;&lt; 4,
  PANGO_FONT_MASK_SIZE    = 1 &lt;&lt; 5,
  PANGO_FONT_MASK_GRAVITY = 1 &lt;&lt; 6
} PangoFontMask;
</pre>
<p>
The bits in a <a class="link" href="pango-Fonts.html#PangoFontMask"><span class="type">PangoFontMask</span></a> correspond to fields in a
<a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> that have been set.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="PANGO-FONT-MASK-FAMILY:CAPS"></a><span class="term"><code class="literal">PANGO_FONT_MASK_FAMILY</code></span></p></td>
<td>the font family is specified.
</td>
</tr>
<tr>
<td><p><a name="PANGO-FONT-MASK-STYLE:CAPS"></a><span class="term"><code class="literal">PANGO_FONT_MASK_STYLE</code></span></p></td>
<td>the font style is specified.
</td>
</tr>
<tr>
<td><p><a name="PANGO-FONT-MASK-VARIANT:CAPS"></a><span class="term"><code class="literal">PANGO_FONT_MASK_VARIANT</code></span></p></td>
<td>the font variant is specified.
</td>
</tr>
<tr>
<td><p><a name="PANGO-FONT-MASK-WEIGHT:CAPS"></a><span class="term"><code class="literal">PANGO_FONT_MASK_WEIGHT</code></span></p></td>
<td>the font weight is specified.
</td>
</tr>
<tr>
<td><p><a name="PANGO-FONT-MASK-STRETCH:CAPS"></a><span class="term"><code class="literal">PANGO_FONT_MASK_STRETCH</code></span></p></td>
<td>the font stretch is specified.
</td>
</tr>
<tr>
<td><p><a name="PANGO-FONT-MASK-SIZE:CAPS"></a><span class="term"><code class="literal">PANGO_FONT_MASK_SIZE</code></span></p></td>
<td>the font size is specified.
</td>
</tr>
<tr>
<td><p><a name="PANGO-FONT-MASK-GRAVITY:CAPS"></a><span class="term"><code class="literal">PANGO_FONT_MASK_GRAVITY</code></span></p></td>
<td>the font gravity is specified (Since: 1.16.)
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-TYPE-FONT-MASK:CAPS"></a><h3>PANGO_TYPE_FONT_MASK</h3>
<pre class="programlisting">#define PANGO_TYPE_FONT_MASK (pango_font_mask_get_type())
</pre>
<p>
The <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Fonts.html#PangoFontMask"><span class="type">PangoFontMask</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-new"></a><h3>pango_font_description_new ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * pango_font_description_new       (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new font description structure with all fields unset.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the newly allocated <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>, which
should be freed using <a class="link" href="pango-Fonts.html#pango-font-description-free" title="pango_font_description_free ()"><code class="function">pango_font_description_free()</code></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-copy"></a><h3>pango_font_description_copy ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * pango_font_description_copy      (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);</pre>
<p>
Make a copy of a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>, may be <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the newly allocated <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>, which should
be freed with <a class="link" href="pango-Fonts.html#pango-font-description-free" title="pango_font_description_free ()"><code class="function">pango_font_description_free()</code></a>, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>
if <em class="parameter"><code>desc</code></em> was <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-copy-static"></a><h3>pango_font_description_copy_static ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * pango_font_description_copy_static
                                                        (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);</pre>
<p>
Like <a class="link" href="pango-Fonts.html#pango-font-description-copy" title="pango_font_description_copy ()"><code class="function">pango_font_description_copy()</code></a>, but only a shallow copy is made
of the family name and other allocated fields. The result can only
be used until <em class="parameter"><code>desc</code></em> is modified or freed. This is meant to be used
when the copy is only needed temporarily.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>, may be <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the newly allocated <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>, which should
be freed with <a class="link" href="pango-Fonts.html#pango-font-description-free" title="pango_font_description_free ()"><code class="function">pango_font_description_free()</code></a>, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>
if <em class="parameter"><code>desc</code></em> was <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-hash"></a><h3>pango_font_description_hash ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>               pango_font_description_hash         (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);</pre>
<p>
Computes a hash of a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> structure suitable
to be used, for example, as an argument to <a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#g-hash-table-new"><code class="function">g_hash_table_new()</code></a>.
The hash value is independent of <em class="parameter"><code>desc-&gt;mask</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the hash value.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-equal"></a><h3>pango_font_description_equal ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            pango_font_description_equal        (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc1</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc2</code></em>);</pre>
<p>
Compares two font descriptions for equality. Two font descriptions
are considered equal if the fonts they describe are provably identical.
This means that their masks do not have to match, as long as other fields
are all the same. (Two font descriptions may result in identical fonts
being loaded, but still compare <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.)
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc1</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc2</code></em> :</span></p></td>
<td>another <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the two font descriptions are identical,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-free"></a><h3>pango_font_description_free ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                pango_font_description_free         (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);</pre>
<p>
Frees a font description.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>, may be <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-descriptions-free"></a><h3>pango_font_descriptions_free ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                pango_font_descriptions_free        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> **descs</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> n_descs</code></em>);</pre>
<p>
Frees an array of font descriptions.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>descs</code></em> :</span></p></td>
<td>a pointer
to an array of <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>, may be <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>][<a href="http://foldoc.org/array"><span class="acronym">array</span></a> length=n_descs][<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_descs</code></em> :</span></p></td>
<td>number of font descriptions in <em class="parameter"><code>descs</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-set-family"></a><h3>pango_font_description_set_family ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                pango_font_description_set_family   (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *family</code></em>);</pre>
<p>
Sets the family name field of a font description. The family
name represents a family of related font styles, and will
resolve to a particular <a class="link" href="pango-Fonts.html#PangoFontFamily"><span class="type">PangoFontFamily</span></a>. In some uses of
<a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>, it is also possible to use a comma
separated list of family names for this field.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>family</code></em> :</span></p></td>
<td>a string representing the family name.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-set-family-static"></a><h3>pango_font_description_set_family_static ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                pango_font_description_set_family_static
                                                        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *family</code></em>);</pre>
<p>
Like <a class="link" href="pango-Fonts.html#pango-font-description-set-family" title="pango_font_description_set_family ()"><code class="function">pango_font_description_set_family()</code></a>, except that no
copy of <em class="parameter"><code>family</code></em> is made. The caller must make sure that the
string passed in stays around until <em class="parameter"><code>desc</code></em> has been freed
or the name is set again. This function can be used if
<em class="parameter"><code>family</code></em> is a static string such as a C string literal, or
if <em class="parameter"><code>desc</code></em> is only needed temporarily.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>family</code></em> :</span></p></td>
<td>a string representing the family name.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-get-family"></a><h3>pango_font_description_get_family ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> *        pango_font_description_get_family   (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);</pre>
<p>
Gets the family name field of a font description. See
<a class="link" href="pango-Fonts.html#pango-font-description-set-family" title="pango_font_description_set_family ()"><code class="function">pango_font_description_set_family()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the family name field for the font description, or
<a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if not previously set.  This has the same life-time
as the font description itself and should not be freed.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-set-style"></a><h3>pango_font_description_set_style ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                pango_font_description_set_style    (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoStyle"><span class="type">PangoStyle</span></a> style</code></em>);</pre>
<p>
Sets the style field of a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>. The
<a class="link" href="pango-Fonts.html#PangoStyle"><span class="type">PangoStyle</span></a> enumeration describes whether the font is slanted and
the manner in which it is slanted; it can be either
<a class="link" href="pango-Fonts.html#PANGO-STYLE-NORMAL:CAPS"><span class="type">PANGO_STYLE_NORMAL</span></a>, <a class="link" href="pango-Fonts.html#PANGO-STYLE-ITALIC:CAPS"><span class="type">PANGO_STYLE_ITALIC</span></a>, or <a class="link" href="pango-Fonts.html#PANGO-STYLE-OBLIQUE:CAPS"><span class="type">PANGO_STYLE_OBLIQUE</span></a>.
Most fonts will either have a italic style or an oblique
style, but not both, and font matching in Pango will
match italic specifications with oblique fonts and vice-versa
if an exact match is not found.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>style</code></em> :</span></p></td>
<td>the style for the font description</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-get-style"></a><h3>pango_font_description_get_style ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoStyle"><span class="returnvalue">PangoStyle</span></a>          pango_font_description_get_style    (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);</pre>
<p>
Gets the style field of a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>. See
<a class="link" href="pango-Fonts.html#pango-font-description-set-style" title="pango_font_description_set_style ()"><code class="function">pango_font_description_set_style()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the style field for the font description.
Use <a class="link" href="pango-Fonts.html#pango-font-description-get-set-fields" title="pango_font_description_get_set_fields ()"><code class="function">pango_font_description_get_set_fields()</code></a> to find out if
the field was explicitly set or not.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-set-variant"></a><h3>pango_font_description_set_variant ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                pango_font_description_set_variant  (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoVariant"><span class="type">PangoVariant</span></a> variant</code></em>);</pre>
<p>
Sets the variant field of a font description. The <a class="link" href="pango-Fonts.html#PangoVariant"><span class="type">PangoVariant</span></a>
can either be <a class="link" href="pango-Fonts.html#PANGO-VARIANT-NORMAL:CAPS"><code class="literal">PANGO_VARIANT_NORMAL</code></a> or <a class="link" href="pango-Fonts.html#PANGO-VARIANT-SMALL-CAPS"><code class="literal">PANGO_VARIANT_SMALL_CAPS</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>variant</code></em> :</span></p></td>
<td>the variant type for the font description.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-get-variant"></a><h3>pango_font_description_get_variant ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoVariant"><span class="returnvalue">PangoVariant</span></a>        pango_font_description_get_variant  (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);</pre>
<p>
Gets the variant field of a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>. See
<a class="link" href="pango-Fonts.html#pango-font-description-set-variant" title="pango_font_description_set_variant ()"><code class="function">pango_font_description_set_variant()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the variant field for the font description. Use
<a class="link" href="pango-Fonts.html#pango-font-description-get-set-fields" title="pango_font_description_get_set_fields ()"><code class="function">pango_font_description_get_set_fields()</code></a> to find out if
the field was explicitly set or not.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-set-weight"></a><h3>pango_font_description_set_weight ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                pango_font_description_set_weight   (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoWeight"><span class="type">PangoWeight</span></a> weight</code></em>);</pre>
<p>
Sets the weight field of a font description. The weight field
specifies how bold or light the font should be. In addition
to the values of the <a class="link" href="pango-Fonts.html#PangoWeight"><span class="type">PangoWeight</span></a> enumeration, other intermediate
numeric values are possible.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>weight</code></em> :</span></p></td>
<td>the weight for the font description.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-get-weight"></a><h3>pango_font_description_get_weight ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoWeight"><span class="returnvalue">PangoWeight</span></a>         pango_font_description_get_weight   (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);</pre>
<p>
Gets the weight field of a font description. See
<a class="link" href="pango-Fonts.html#pango-font-description-set-weight" title="pango_font_description_set_weight ()"><code class="function">pango_font_description_set_weight()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the weight field for the font description. Use
<a class="link" href="pango-Fonts.html#pango-font-description-get-set-fields" title="pango_font_description_get_set_fields ()"><code class="function">pango_font_description_get_set_fields()</code></a> to find out if
the field was explicitly set or not.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-set-stretch"></a><h3>pango_font_description_set_stretch ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                pango_font_description_set_stretch  (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoStretch"><span class="type">PangoStretch</span></a> stretch</code></em>);</pre>
<p>
Sets the stretch field of a font description. The stretch field
specifies how narrow or wide the font should be.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stretch</code></em> :</span></p></td>
<td>the stretch for the font description</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-get-stretch"></a><h3>pango_font_description_get_stretch ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoStretch"><span class="returnvalue">PangoStretch</span></a>        pango_font_description_get_stretch  (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);</pre>
<p>
Gets the stretch field of a font description.
See <a class="link" href="pango-Fonts.html#pango-font-description-set-stretch" title="pango_font_description_set_stretch ()"><code class="function">pango_font_description_set_stretch()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the stretch field for the font description. Use
<a class="link" href="pango-Fonts.html#pango-font-description-get-set-fields" title="pango_font_description_get_set_fields ()"><code class="function">pango_font_description_get_set_fields()</code></a> to find out if
the field was explicitly set or not.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-set-size"></a><h3>pango_font_description_set_size ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                pango_font_description_set_size     (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> size</code></em>);</pre>
<p>
Sets the size field of a font description in fractional points. This is mutually
exclusive with <a class="link" href="pango-Fonts.html#pango-font-description-set-absolute-size" title="pango_font_description_set_absolute_size ()"><code class="function">pango_font_description_set_absolute_size()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>the size of the font in points, scaled by PANGO_SCALE. (That is,
a <em class="parameter"><code>size</code></em> value of 10 * PANGO_SCALE is a 10 point font. The conversion
factor between points and device units depends on system configuration
and the output device. For screen display, a logical DPI of 96 is
common, in which case a 10 point font corresponds to a 10 * (96 / 72) = 13.3
pixel font. Use <a class="link" href="pango-Fonts.html#pango-font-description-set-absolute-size" title="pango_font_description_set_absolute_size ()"><code class="function">pango_font_description_set_absolute_size()</code></a> if you need
a particular size in device units.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-get-size"></a><h3>pango_font_description_get_size ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                pango_font_description_get_size     (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);</pre>
<p>
Gets the size field of a font description.
See <a class="link" href="pango-Fonts.html#pango-font-description-set-size" title="pango_font_description_set_size ()"><code class="function">pango_font_description_set_size()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the size field for the font description in points or device units.
You must call <a class="link" href="pango-Fonts.html#pango-font-description-get-size-is-absolute" title="pango_font_description_get_size_is_absolute ()"><code class="function">pango_font_description_get_size_is_absolute()</code></a>
to find out which is the case. Returns 0 if the size field has not
previously been set or it has been set to 0 explicitly.
Use <a class="link" href="pango-Fonts.html#pango-font-description-get-set-fields" title="pango_font_description_get_set_fields ()"><code class="function">pango_font_description_get_set_fields()</code></a> to
find out if the field was explicitly set or not.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-set-absolute-size"></a><h3>pango_font_description_set_absolute_size ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                pango_font_description_set_absolute_size
                                                        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code><span class="type">double</span> size</code></em>);</pre>
<p>
Sets the size field of a font description, in device units. This is mutually
exclusive with <a class="link" href="pango-Fonts.html#pango-font-description-set-size" title="pango_font_description_set_size ()"><code class="function">pango_font_description_set_size()</code></a> which sets the font size
in points.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>the new size, in Pango units. There are <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a> Pango units in one
device unit. For an output backend where a device unit is a pixel, a <em class="parameter"><code>size</code></em>
value of 10 * PANGO_SCALE gives a 10 pixel font.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.8</p>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-get-size-is-absolute"></a><h3>pango_font_description_get_size_is_absolute ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            pango_font_description_get_size_is_absolute
                                                        (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);</pre>
<p>
Determines whether the size of the font is in points (not absolute) or device units (absolute).
See <a class="link" href="pango-Fonts.html#pango-font-description-set-size" title="pango_font_description_set_size ()"><code class="function">pango_font_description_set_size()</code></a> and <a class="link" href="pango-Fonts.html#pango-font-description-set-absolute-size" title="pango_font_description_set_absolute_size ()"><code class="function">pango_font_description_set_absolute_size()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether the size for the font description is in
points or device units.  Use <a class="link" href="pango-Fonts.html#pango-font-description-get-set-fields" title="pango_font_description_get_set_fields ()"><code class="function">pango_font_description_get_set_fields()</code></a> to
find out if the size field of the font description was explicitly set or not.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.8</p>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-set-gravity"></a><h3>pango_font_description_set_gravity ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                pango_font_description_set_gravity  (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="type">PangoGravity</span></a> gravity</code></em>);</pre>
<p>
Sets the gravity field of a font description. The gravity field
specifies how the glyphs should be rotated.  If <em class="parameter"><code>gravity</code></em> is
<a class="link" href="pango-Vertical-Text.html#PANGO-GRAVITY-AUTO:CAPS"><code class="literal">PANGO_GRAVITY_AUTO</code></a>, this actually unsets the gravity mask on
the font description.
</p>
<p>
This function is seldom useful to the user.  Gravity should normally
be set on a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>gravity</code></em> :</span></p></td>
<td>the gravity for the font description.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.16</p>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-get-gravity"></a><h3>pango_font_description_get_gravity ()</h3>
<pre class="programlisting"><a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="returnvalue">PangoGravity</span></a>        pango_font_description_get_gravity  (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);</pre>
<p>
Gets the gravity field of a font description. See
<a class="link" href="pango-Fonts.html#pango-font-description-set-gravity" title="pango_font_description_set_gravity ()"><code class="function">pango_font_description_set_gravity()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the gravity field for the font description. Use
<a class="link" href="pango-Fonts.html#pango-font-description-get-set-fields" title="pango_font_description_get_set_fields ()"><code class="function">pango_font_description_get_set_fields()</code></a> to find out if
the field was explicitly set or not.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.16</p>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-get-set-fields"></a><h3>pango_font_description_get_set_fields ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontMask"><span class="returnvalue">PangoFontMask</span></a>       pango_font_description_get_set_fields
                                                        (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);</pre>
<p>
Determines which fields in a font description have been set.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a bitmask with bits set corresponding to the
fields in <em class="parameter"><code>desc</code></em> that have been set.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-unset-fields"></a><h3>pango_font_description_unset_fields ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                pango_font_description_unset_fields (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMask"><span class="type">PangoFontMask</span></a> to_unset</code></em>);</pre>
<p>
Unsets some of the fields in a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>.  The unset
fields will get back to their default values.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>to_unset</code></em> :</span></p></td>
<td>bitmask of fields in the <em class="parameter"><code>desc</code></em> to unset.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-merge"></a><h3>pango_font_description_merge ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                pango_font_description_merge        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc_to_merge</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> replace_existing</code></em>);</pre>
<p>
Merges the fields that are set in <em class="parameter"><code>desc_to_merge</code></em> into the fields in
<em class="parameter"><code>desc</code></em>.  If <em class="parameter"><code>replace_existing</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, only fields in <em class="parameter"><code>desc</code></em> that
are not already set are affected. If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then fields that are
already set will be replaced as well.
</p>
<p>
If <em class="parameter"><code>desc_to_merge</code></em> is <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>, this function performs nothing.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc_to_merge</code></em> :</span></p></td>
<td>the <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> to merge from, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>replace_existing</code></em> :</span></p></td>
<td>if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, replace fields in <em class="parameter"><code>desc</code></em> with the
corresponding values from <em class="parameter"><code>desc_to_merge</code></em>, even if they
are already exist.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-merge-static"></a><h3>pango_font_description_merge_static ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                pango_font_description_merge_static (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc_to_merge</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> replace_existing</code></em>);</pre>
<p>
Like <a class="link" href="pango-Fonts.html#pango-font-description-merge" title="pango_font_description_merge ()"><code class="function">pango_font_description_merge()</code></a>, but only a shallow copy is made
of the family name and other allocated fields. <em class="parameter"><code>desc</code></em> can only be
used until <em class="parameter"><code>desc_to_merge</code></em> is modified or freed. This is meant
to be used when the merged font description is only needed temporarily.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc_to_merge</code></em> :</span></p></td>
<td>the <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> to merge from</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>replace_existing</code></em> :</span></p></td>
<td>if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, replace fields in <em class="parameter"><code>desc</code></em> with the
corresponding values from <em class="parameter"><code>desc_to_merge</code></em>, even if they
are already exist.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-better-match"></a><h3>pango_font_description_better_match ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            pango_font_description_better_match (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *old_match</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *new_match</code></em>);</pre>
<p>
Determines if the style attributes of <em class="parameter"><code>new_match</code></em> are a closer match
for <em class="parameter"><code>desc</code></em> than those of <em class="parameter"><code>old_match</code></em> are, or if <em class="parameter"><code>old_match</code></em> is <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>,
determines if <em class="parameter"><code>new_match</code></em> is a match at all.
Approximate matching is done for
weight and style; other style attributes must match exactly.
Style attributes are all attributes other than family and size-related
attributes.  Approximate matching for style considers PANGO_STYLE_OBLIQUE
and PANGO_STYLE_ITALIC as matches, but not as good a match as when the
styles are equal.
</p>
<p>
Note that <em class="parameter"><code>old_match</code></em> must match <em class="parameter"><code>desc</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>old_match</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>new_match</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>new_match</code></em> is a better match</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-from-string"></a><h3>pango_font_description_from_string ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * pango_font_description_from_string
                                                        (<em class="parameter"><code>const <span class="type">char</span> *str</code></em>);</pre>
<p>
Creates a new font description from a string representation in the
form "[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]", where FAMILY-LIST is a
comma separated list of families optionally terminated by a comma,
STYLE_OPTIONS is a whitespace separated list of words where each WORD
describes one of style, variant, weight, stretch, or gravity, and SIZE
is a decimal number (size in points) or optionally followed by the
unit modifier "px" for absolute size. Any one of the options may
be absent.  If FAMILY-LIST is absent, then the family_name field of
the resulting font description will be initialized to <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>.  If
STYLE-OPTIONS is missing, then all style options will be set to the
default values. If SIZE is missing, the size in the resulting font
description will be set to 0.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
<td>string representation of a font description.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-to-string"></a><h3>pango_font_description_to_string ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *              pango_font_description_to_string    (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);</pre>
<p>
Creates a string representation of a font description. See
<a class="link" href="pango-Fonts.html#pango-font-description-from-string" title="pango_font_description_from_string ()"><code class="function">pango_font_description_from_string()</code></a> for a description of the
format of the string representation. The family list in the
string description will only have a terminating comma if the
last word of the list is a valid style option.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new string that must be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-description-to-filename"></a><h3>pango_font_description_to_filename ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *              pango_font_description_to_filename  (<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);</pre>
<p>
Creates a filename representation of a font description. The
filename is identical to the result from calling
<a class="link" href="pango-Fonts.html#pango-font-description-to-string" title="pango_font_description_to_string ()"><code class="function">pango_font_description_to_string()</code></a>, but with underscores instead of
characters that are untypical in filenames, and in lower case only.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new string that must be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="PangoFontMetrics-struct"></a><h3>struct PangoFontMetrics</h3>
<pre class="programlisting">struct PangoFontMetrics {
  guint ref_count;

  int ascent;
  int descent;
  int approximate_char_width;
  int approximate_digit_width;
  int underline_position;
  int underline_thickness;
  int strikethrough_position;
  int strikethrough_thickness;
};
</pre>
<p>
A <a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> structure holds the overall metric information
for a font (possibly restricted to a script). The fields of this
structure are private to implementations of a font backend. See
the documentation of the corresponding getters for documentation
of their meaning.
</p>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-TYPE-FONT-METRICS:CAPS"></a><h3>PANGO_TYPE_FONT_METRICS</h3>
<pre class="programlisting">#define PANGO_TYPE_FONT_METRICS  (pango_font_metrics_get_type ())
</pre>
<p>
The <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-metrics-ref"></a><h3>pango_font_metrics_ref ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="returnvalue">PangoFontMetrics</span></a> *  pango_font_metrics_ref              (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> *metrics</code></em>);</pre>
<p>
Increase the reference count of a font metrics structure by one.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>metrics</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> structure, may be <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td><em class="parameter"><code>metrics</code></em></td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-metrics-unref"></a><h3>pango_font_metrics_unref ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                pango_font_metrics_unref            (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> *metrics</code></em>);</pre>
<p>
Decrease the reference count of a font metrics structure by one. If
the result is zero, frees the structure and any associated
memory.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>metrics</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> structure, may be <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-metrics-get-ascent"></a><h3>pango_font_metrics_get_ascent ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 pango_font_metrics_get_ascent       (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> *metrics</code></em>);</pre>
<p>
Gets the ascent from a font metrics structure. The ascent is
the distance from the baseline to the logical top of a line
of text. (The logical top may be above or below the top of the
actual drawn ink. It is necessary to lay out the text to figure
where the ink will be.)
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>metrics</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> structure</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the ascent, in Pango units.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-metrics-get-descent"></a><h3>pango_font_metrics_get_descent ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 pango_font_metrics_get_descent      (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> *metrics</code></em>);</pre>
<p>
Gets the descent from a font metrics structure. The descent is
the distance from the baseline to the logical bottom of a line
of text. (The logical bottom may be above or below the bottom of the
actual drawn ink. It is necessary to lay out the text to figure
where the ink will be.)
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>metrics</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> structure</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the descent, in Pango units.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-metrics-get-approximate-char-width"></a><h3>pango_font_metrics_get_approximate_char_width ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 pango_font_metrics_get_approximate_char_width
                                                        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> *metrics</code></em>);</pre>
<p>
Gets the approximate character width for a font metrics structure.
This is merely a representative value useful, for example, for
determining the initial size for a window. Actual characters in
text will be wider and narrower than this.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>metrics</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> structure</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the character width, in Pango units.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-metrics-get-approximate-digit-width"></a><h3>pango_font_metrics_get_approximate_digit_width ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 pango_font_metrics_get_approximate_digit_width
                                                        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> *metrics</code></em>);</pre>
<p>
Gets the approximate digit width for a font metrics structure.
This is merely a representative value useful, for example, for
determining the initial size for a window. Actual digits in
text can be wider or narrower than this, though this value
is generally somewhat more accurate than the result of
<a class="link" href="pango-Fonts.html#pango-font-metrics-get-approximate-char-width" title="pango_font_metrics_get_approximate_char_width ()"><code class="function">pango_font_metrics_get_approximate_char_width()</code></a> for digits.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>metrics</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> structure</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the digit width, in Pango units.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-metrics-get-underline-thickness"></a><h3>pango_font_metrics_get_underline_thickness ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 pango_font_metrics_get_underline_thickness
                                                        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> *metrics</code></em>);</pre>
<p>
Gets the suggested thickness to draw for the underline.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>metrics</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> structure</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the suggested underline thickness, in Pango units.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.6</p>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-metrics-get-underline-position"></a><h3>pango_font_metrics_get_underline_position ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 pango_font_metrics_get_underline_position
                                                        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> *metrics</code></em>);</pre>
<p>
Gets the suggested position to draw the underline.
The value returned is the distance <span class="emphasis"><em>above</em></span> the
baseline of the top of the underline. Since most fonts have
underline positions beneath the baseline, this value is typically
negative.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>metrics</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> structure</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the suggested underline position, in Pango units.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.6</p>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-metrics-get-strikethrough-thickness"></a><h3>pango_font_metrics_get_strikethrough_thickness ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 pango_font_metrics_get_strikethrough_thickness
                                                        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> *metrics</code></em>);</pre>
<p>
Gets the suggested thickness to draw for the strikethrough.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>metrics</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> structure</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the suggested strikethrough thickness, in Pango units.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.6</p>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-metrics-get-strikethrough-position"></a><h3>pango_font_metrics_get_strikethrough_position ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 pango_font_metrics_get_strikethrough_position
                                                        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> *metrics</code></em>);</pre>
<p>
Gets the suggested position to draw the strikethrough.
The value returned is the distance <span class="emphasis"><em>above</em></span> the
baseline of the top of the strikethrough.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>metrics</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> structure</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the suggested strikethrough position, in Pango units.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.6</p>
</div>
<hr>
<div class="refsect2">
<a name="PangoFont-struct"></a><h3>PangoFont</h3>
<pre class="programlisting">typedef struct _PangoFont PangoFont;</pre>
<p>
The <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> structure is used to represent
a font in a rendering-system-independent matter.
To create an implementation of a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>,
the rendering-system specific code should allocate
a larger structure that contains a nested
<a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>, fill in the <em class="structfield"><code>klass</code></em> member of
the nested <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> with a pointer to
a appropriate <span class="type">PangoFontClass</span>, then call
<code class="function">pango_font_init()</code> on the structure.
</p>
<p>
The <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> structure contains one member
which the implementation fills in.
</p>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-TYPE-FONT:CAPS"></a><h3>PANGO_TYPE_FONT</h3>
<pre class="programlisting">#define PANGO_TYPE_FONT              (pango_font_get_type ())
</pre>
<p>
The <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-FONT:CAPS"></a><h3>PANGO_FONT()</h3>
<pre class="programlisting">#define PANGO_FONT(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONT, PangoFont))
</pre>
<p>
Casts a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> to a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-IS-FONT:CAPS"></a><h3>PANGO_IS_FONT()</h3>
<pre class="programlisting">#define PANGO_IS_FONT(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONT))
</pre>
<p>
Returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>object</code></em> is a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-find-shaper"></a><h3>pango_font_find_shaper ()</h3>
<pre class="programlisting"><a class="link" href="PangoEngineShape.html" title="PangoEngineShape"><span class="returnvalue">PangoEngineShape</span></a> *  pango_font_find_shaper              (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> ch</code></em>);</pre>
<p>
Finds the best matching shaper for a font for a particular
language tag and character point.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>language</code></em> :</span></p></td>
<td>the language tag</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ch</code></em> :</span></p></td>
<td>a Unicode character.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the best matching shaper.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-describe"></a><h3>pango_font_describe ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * pango_font_describe              (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>);</pre>
<p>
Returns a description of the font, with font size set in points.
Use <a class="link" href="pango-Fonts.html#pango-font-describe-with-absolute-size" title="pango_font_describe_with_absolute_size ()"><code class="function">pango_font_describe_with_absolute_size()</code></a> if you want the font
size in device units.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a newly-allocated <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> object.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-describe-with-absolute-size"></a><h3>pango_font_describe_with_absolute_size ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * pango_font_describe_with_absolute_size
                                                        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>);</pre>
<p>
Returns a description of the font, with absolute font size set
(in device units). Use <a class="link" href="pango-Fonts.html#pango-font-describe" title="pango_font_describe ()"><code class="function">pango_font_describe()</code></a> if you want the font
size in points.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a newly-allocated <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> object.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.14</p>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-get-coverage"></a><h3>pango_font_get_coverage ()</h3>
<pre class="programlisting"><a class="link" href="pango-Coverage-Maps.html#PangoCoverage" title="PangoCoverage"><span class="returnvalue">PangoCoverage</span></a> *     pango_font_get_coverage             (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>);</pre>
<p>
Computes the coverage map for a given font and language tag.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>language</code></em> :</span></p></td>
<td>the language tag</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a newly-allocated <a class="link" href="pango-Coverage-Maps.html#PangoCoverage" title="PangoCoverage"><span class="type">PangoCoverage</span></a> object.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-get-glyph-extents"></a><h3>pango_font_get_glyph_extents ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                pango_font_get_glyph_extents        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph"><span class="type">PangoGlyph</span></a> glyph</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);</pre>
<p>
Gets the logical and ink extents of a glyph within a font. The
coordinate system for each rectangle has its origin at the
base line and horizontal origin of the character with increasing
coordinates extending to the right and down. The macros <a class="link" href="pango-Glyph-Storage.html#PANGO-ASCENT:CAPS" title="PANGO_ASCENT()"><code class="function">PANGO_ASCENT()</code></a>,
<a class="link" href="pango-Glyph-Storage.html#PANGO-DESCENT:CAPS" title="PANGO_DESCENT()"><code class="function">PANGO_DESCENT()</code></a>, <a class="link" href="pango-Glyph-Storage.html#PANGO-LBEARING:CAPS" title="PANGO_LBEARING()"><code class="function">PANGO_LBEARING()</code></a>, and <a class="link" href="pango-Glyph-Storage.html#PANGO-RBEARING:CAPS" title="PANGO_RBEARING()"><code class="function">PANGO_RBEARING()</code></a> can be used to convert
from the extents rectangle to more traditional font metrics. The units
of the rectangles are in 1/PANGO_SCALE of a device unit.
</p>
<p>
If <em class="parameter"><code>font</code></em> is <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>, this function gracefully sets some sane values in the
output variables and returns.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>glyph</code></em> :</span></p></td>
<td>the glyph index</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ink_rect</code></em> :</span></p></td>
<td>rectangle used to store the extents of the glyph
as drawn or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to indicate that the result is not needed. <span class="annotation">[<a href="http://foldoc.org/out"><span class="acronym">out</span></a>][<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>logical_rect</code></em> :</span></p></td>
<td>rectangle used to store the logical extents of
the glyph or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to indicate that the result is not needed. <span class="annotation">[<a href="http://foldoc.org/out"><span class="acronym">out</span></a>][<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-get-metrics"></a><h3>pango_font_get_metrics ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="returnvalue">PangoFontMetrics</span></a> *  pango_font_get_metrics              (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>);</pre>
<p>
Gets overall metric information for a font. Since the metrics may be
substantially different for different scripts, a language tag can
be provided to indicate that the metrics should be retrieved that
correspond to the script(s) used by that language.
</p>
<p>
If <em class="parameter"><code>font</code></em> is <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>, this function gracefully sets some sane values in the
output variables and returns.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>language</code></em> :</span></p></td>
<td>language tag used to determine which script to get the metrics
for, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to indicate to get the metrics for the entire font. <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> object. The caller must call <a class="link" href="pango-Fonts.html#pango-font-metrics-unref" title="pango_font_metrics_unref ()"><code class="function">pango_font_metrics_unref()</code></a>
when finished using the object.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-get-font-map"></a><h3>pango_font_get_font_map ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="returnvalue">PangoFontMap</span></a> *      pango_font_get_font_map             (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>);</pre>
<p>
Gets the font map for which the font was created.
</p>
<p>
Note that the font maintains a <em class="firstterm">weak</em> reference
to the font map, so if all references to font map are dropped, the font
map will be finalized even if there are fonts created with the font
map that are still alive.  In that case this function will return <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>.
It is the responsibility of the user to ensure that the font map is kept
alive.  In most uses this is not an issue as a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> holds
a reference to the font map.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> for the font, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>
if <em class="parameter"><code>font</code></em> is <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.10</p>
</div>
<hr>
<div class="refsect2">
<a name="PangoFontFamily-struct"></a><h3>struct PangoFontFamily</h3>
<pre class="programlisting">struct PangoFontFamily;</pre>
<p>
The <a class="link" href="pango-Fonts.html#PangoFontFamily"><span class="type">PangoFontFamily</span></a> structure is used to represent a family of related
font faces. The faces in a family share a common design, but differ in
slant, weight, width and other aspects.
</p>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-TYPE-FONT-FAMILY:CAPS"></a><h3>PANGO_TYPE_FONT_FAMILY</h3>
<pre class="programlisting">#define PANGO_TYPE_FONT_FAMILY              (pango_font_family_get_type ())
</pre>
<p>
The <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Fonts.html#PangoFontFamily"><span class="type">PangoFontFamily</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-FONT-FAMILY:CAPS"></a><h3>PANGO_FONT_FAMILY()</h3>
<pre class="programlisting">#define PANGO_FONT_FAMILY(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONT_FAMILY, PangoFontFamily))
</pre>
<p>
Casts a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> to a <a class="link" href="pango-Fonts.html#PangoFontFamily"><span class="type">PangoFontFamily</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-IS-FONT-FAMILY:CAPS"></a><h3>PANGO_IS_FONT_FAMILY()</h3>
<pre class="programlisting">#define PANGO_IS_FONT_FAMILY(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONT_FAMILY))
</pre>
<p>
Returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>object</code></em> is a <a class="link" href="pango-Fonts.html#PangoFontFamily"><span class="type">PangoFontFamily</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-family-get-name"></a><h3>pango_font_family_get_name ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> *        pango_font_family_get_name          (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontFamily"><span class="type">PangoFontFamily</span></a> *family</code></em>);</pre>
<p>
Gets the name of the family. The name is unique among all
fonts for the font backend and can be used in a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>
to specify that a face from this family is desired.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>family</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontFamily"><span class="type">PangoFontFamily</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the name of the family. This string is owned
by the family object and must not be modified or freed.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-family-is-monospace"></a><h3>pango_font_family_is_monospace ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            pango_font_family_is_monospace      (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontFamily"><span class="type">PangoFontFamily</span></a> *family</code></em>);</pre>
<p>
A monospace font is a font designed for text display where the the
characters form a regular grid. For Western languages this would
mean that the advance width of all characters are the same, but
this categorization also includes Asian fonts which include
double-width characters: characters that occupy two grid cells.
<a href="http://library.gnome.org/devel/glib/unstable/glib-Unicode-Manipulation.html#g-unichar-iswide"><code class="function">g_unichar_iswide()</code></a> returns a result that indicates whether a
character is typically double-width in a monospace font.
</p>
<p>
The best way to find out the grid-cell size is to call
<a class="link" href="pango-Fonts.html#pango-font-metrics-get-approximate-digit-width" title="pango_font_metrics_get_approximate_digit_width ()"><code class="function">pango_font_metrics_get_approximate_digit_width()</code></a>, since the results
of <a class="link" href="pango-Fonts.html#pango-font-metrics-get-approximate-char-width" title="pango_font_metrics_get_approximate_char_width ()"><code class="function">pango_font_metrics_get_approximate_char_width()</code></a> may be affected
by double-width characters.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>family</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontFamily"><span class="type">PangoFontFamily</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the family is monospace.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.4</p>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-family-list-faces"></a><h3>pango_font_family_list_faces ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                pango_font_family_list_faces        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontFamily"><span class="type">PangoFontFamily</span></a> *family</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontFace"><span class="type">PangoFontFace</span></a> ***faces</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *n_faces</code></em>);</pre>
<p>
Lists the different font faces that make up <em class="parameter"><code>family</code></em>. The faces
in a family share a common design, but differ in slant, weight,
width and other aspects.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>family</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontFamily"><span class="type">PangoFontFamily</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>faces</code></em> :</span></p></td>
<td>location to store an array of pointers to <a class="link" href="pango-Fonts.html#PangoFontFace"><span class="type">PangoFontFace</span></a>
objects, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. This array should be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>
when it is no longer needed. <span class="annotation">[<a href="http://foldoc.org/out"><span class="acronym">out</span></a>][<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>][<a href="http://foldoc.org/array"><span class="acronym">array</span></a> length=n_faces]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_faces</code></em> :</span></p></td>
<td>location to store number of elements in <em class="parameter"><code>faces</code></em>. <span class="annotation">[<a href="http://foldoc.org/out"><span class="acronym">out</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="PangoFontFace-struct"></a><h3>struct PangoFontFace</h3>
<pre class="programlisting">struct PangoFontFace;</pre>
<p>
The <a class="link" href="pango-Fonts.html#PangoFontFace"><span class="type">PangoFontFace</span></a> structure is used to represent a group of fonts with
the same family, slant, weight, width, but varying sizes.
</p>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-TYPE-FONT-FACE:CAPS"></a><h3>PANGO_TYPE_FONT_FACE</h3>
<pre class="programlisting">#define PANGO_TYPE_FONT_FACE              (pango_font_face_get_type ())
</pre>
<p>
The <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Fonts.html#PangoFontFace"><span class="type">PangoFontFace</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-FONT-FACE:CAPS"></a><h3>PANGO_FONT_FACE()</h3>
<pre class="programlisting">#define PANGO_FONT_FACE(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONT_FACE, PangoFontFace))
</pre>
<p>
Casts a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> to a <a class="link" href="pango-Fonts.html#PangoFontFace"><span class="type">PangoFontFace</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-IS-FONT-FACE:CAPS"></a><h3>PANGO_IS_FONT_FACE()</h3>
<pre class="programlisting">#define PANGO_IS_FONT_FACE(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONT_FACE))
</pre>
<p>
Returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>object</code></em> is a <a class="link" href="pango-Fonts.html#PangoFontFace"><span class="type">PangoFontFace</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-face-get-face-name"></a><h3>pango_font_face_get_face_name ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> *        pango_font_face_get_face_name       (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontFace"><span class="type">PangoFontFace</span></a> *face</code></em>);</pre>
<p>
Gets a name representing the style of this face among the
different faces in the <a class="link" href="pango-Fonts.html#PangoFontFamily"><span class="type">PangoFontFamily</span></a> for the face. This
name is unique among all faces in the family and is suitable
for displaying to users.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>face</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontFace"><span class="type">PangoFontFace</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the face name for the face. This string is
owned by the face object and must not be modified or freed.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-face-list-sizes"></a><h3>pango_font_face_list_sizes ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                pango_font_face_list_sizes          (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontFace"><span class="type">PangoFontFace</span></a> *face</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> **sizes</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *n_sizes</code></em>);</pre>
<p>
List the available sizes for a font. This is only applicable to bitmap
fonts. For scalable fonts, stores <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> at the location pointed to by
<em class="parameter"><code>sizes</code></em> and 0 at the location pointed to by <em class="parameter"><code>n_sizes</code></em>. The sizes returned
are in Pango units and are sorted in ascending order.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>face</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontFace"><span class="type">PangoFontFace</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sizes</code></em> :</span></p></td>
<td>location to store a pointer to an array of int. This array
should be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_sizes</code></em> :</span></p></td>
<td>location to store the number of elements in <em class="parameter"><code>sizes</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.4</p>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-face-describe"></a><h3>pango_font_face_describe ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * pango_font_face_describe         (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontFace"><span class="type">PangoFontFace</span></a> *face</code></em>);</pre>
<p>
Returns the family, style, variant, weight and stretch of
a <a class="link" href="pango-Fonts.html#PangoFontFace"><span class="type">PangoFontFace</span></a>. The size field of the resulting font description
will be unset.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>face</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontFace"><span class="type">PangoFontFace</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a newly-created <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> structure
holding the description of the face. Use <a class="link" href="pango-Fonts.html#pango-font-description-free" title="pango_font_description_free ()"><code class="function">pango_font_description_free()</code></a>
to free the result.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-face-is-synthesized"></a><h3>pango_font_face_is_synthesized ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            pango_font_face_is_synthesized      (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontFace"><span class="type">PangoFontFace</span></a> *face</code></em>);</pre>
<p>
Returns whether a <a class="link" href="pango-Fonts.html#PangoFontFace"><span class="type">PangoFontFace</span></a> is synthesized by the underlying
font rendering engine from another face, perhaps by shearing, emboldening,
or lightening it.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>face</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontFace"><span class="type">PangoFontFace</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether <em class="parameter"><code>face</code></em> is synthesized.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.18</p>
</div>
<hr>
<div class="refsect2">
<a name="PangoFontMap-struct"></a><h3>PangoFontMap</h3>
<pre class="programlisting">typedef struct _PangoFontMap PangoFontMap;</pre>
<p>
The <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> represents the set of fonts available for a
particular rendering system. This is a virtual object with
implementations being specific to particular rendering systems.  To
create an implementation of a <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a>, the rendering-system
specific code should allocate a larger structure that contains a nested
<a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a>, fill in the <em class="structfield"><code>klass</code></em> member of the nested <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> with a
pointer to a appropriate <a class="link" href="pango-Fonts.html#PangoFontMapClass" title="struct PangoFontMapClass"><span class="type">PangoFontMapClass</span></a>, then call
<code class="function">pango_font_map_init()</code> on the structure.
</p>
<p>
The <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> structure contains one member which the implementation
fills in.
</p>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-TYPE-FONT-MAP:CAPS"></a><h3>PANGO_TYPE_FONT_MAP</h3>
<pre class="programlisting">#define PANGO_TYPE_FONT_MAP              (pango_font_map_get_type ())
</pre>
<p>
The <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-FONT-MAP:CAPS"></a><h3>PANGO_FONT_MAP()</h3>
<pre class="programlisting">#define PANGO_FONT_MAP(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONT_MAP, PangoFontMap))
</pre>
<p>
Casts a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> to a <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-IS-FONT-MAP:CAPS"></a><h3>PANGO_IS_FONT_MAP()</h3>
<pre class="programlisting">#define PANGO_IS_FONT_MAP(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONT_MAP))
</pre>
<p>
Returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>object</code></em> is a <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="PangoFontMapClass"></a><h3>struct PangoFontMapClass</h3>
<pre class="programlisting">struct PangoFontMapClass {
  GObjectClass parent_class;


  PangoFont *   (*load_font)     (PangoFontMap               *fontmap,
				  PangoContext               *context,
				  const PangoFontDescription *desc);
  void          (*list_families) (PangoFontMap               *fontmap,
				  PangoFontFamily          ***families,
				  int                        *n_families);
  PangoFontset *(*load_fontset)  (PangoFontMap               *fontmap,
				  PangoContext               *context,
				  const PangoFontDescription *desc,
				  PangoLanguage              *language);

  const char *shape_engine_type;
};
</pre>
<p>
The <a class="link" href="pango-Fonts.html#PangoFontMapClass" title="struct PangoFontMapClass"><span class="type">PangoFontMapClass</span></a> structure holds the virtual functions for
a particular <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> implementation.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> <em class="structfield"><code><a name="PangoFontMapClass.parent-class"></a>parent_class</code></em>;</span></p></td>
<td>parent <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="PangoFontMapClass.load-font"></a>load_font</code></em> ()</span></p></td>
<td>a function to load a font with a given description. See
<a class="link" href="pango-Fonts.html#pango-font-map-load-font" title="pango_font_map_load_font ()"><code class="function">pango_font_map_load_font()</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="PangoFontMapClass.list-families"></a>list_families</code></em> ()</span></p></td>
<td>A function to list available font families. See
<a class="link" href="pango-Fonts.html#pango-font-map-list-families" title="pango_font_map_list_families ()"><code class="function">pango_font_map_list_families()</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="PangoFontMapClass.load-fontset"></a>load_fontset</code></em> ()</span></p></td>
<td>a function to load a fontset with a given given description
suitable for a particular language. See
<a class="link" href="pango-Fonts.html#pango-font-map-load-fontset" title="pango_font_map_load_fontset ()"><code class="function">pango_font_map_load_fontset()</code></a>.</td>
</tr>
<tr>
<td><p><span class="term">const <span class="type">char</span> *<em class="structfield"><code><a name="PangoFontMapClass.shape-engine-type"></a>shape_engine_type</code></em>;</span></p></td>
<td>the type of rendering-system-dependent engines that
can handle fonts of this fonts loaded with this fontmap.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-FONT-MAP-CLASS:CAPS"></a><h3>PANGO_FONT_MAP_CLASS()</h3>
<pre class="programlisting">#define PANGO_FONT_MAP_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_FONT_MAP, PangoFontMapClass))
</pre>
<p>
Casts a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> to a <a class="link" href="pango-Fonts.html#PangoFontMapClass" title="struct PangoFontMapClass"><span class="type">PangoFontMapClass</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>klass</code></em> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-IS-FONT-MAP-CLASS:CAPS"></a><h3>PANGO_IS_FONT_MAP_CLASS()</h3>
<pre class="programlisting">#define PANGO_IS_FONT_MAP_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_FONT_MAP))
</pre>
<p>
Returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>klass</code></em> is a subtype of <a class="link" href="pango-Fonts.html#PangoFontMapClass" title="struct PangoFontMapClass"><span class="type">PangoFontMapClass</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>klass</code></em> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-FONT-MAP-GET-CLASS:CAPS"></a><h3>PANGO_FONT_MAP_GET_CLASS()</h3>
<pre class="programlisting">#define PANGO_FONT_MAP_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_FONT_MAP, PangoFontMapClass))
</pre>
<p>
Returns the type of a <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>obj</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-map-create-context"></a><h3>pango_font_map_create_context ()</h3>
<pre class="programlisting"><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> *      pango_font_map_create_context       (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> *fontmap</code></em>);</pre>
<p>
Creates a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> connected to <em class="parameter"><code>fontmap</code></em>.  This is equivalent
to <a class="link" href="pango-Text-Processing.html#pango-context-new" title="pango_context_new ()"><code class="function">pango_context_new()</code></a> followed by <a class="link" href="pango-Text-Processing.html#pango-context-set-font-map" title="pango_context_set_font_map ()"><code class="function">pango_context_set_font_map()</code></a>.
</p>
<p>
If you are using Pango as part of a higher-level system,
that system may have it's own way of create a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>.
For instance, the GTK+ toolkit has, among others,
<a href="http://library.gnome.org/devel/gdk/gdk3-Pango-Interaction.html#gdk-pango-context-get-for-screen"><code class="function">gdk_pango_context_get_for_screen()</code></a>, and
<a href="http://library.gnome.org/devel/gtk3/GtkWidget.html#gtk-widget-get-pango-context"><code class="function">gtk_widget_get_pango_context()</code></a>.  Use those instead.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fontmap</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the newly allocated <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>,
which should be freed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.22</p>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-map-load-font"></a><h3>pango_font_map_load_font ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFont"><span class="returnvalue">PangoFont</span></a> *         pango_font_map_load_font            (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> *fontmap</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);</pre>
<p>
Load the font in the fontmap that is the closest match for <em class="parameter"><code>desc</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fontmap</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>the <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> the font will be used with</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> describing the font to load</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the newly allocated <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> loaded,
or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if no font matched. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-map-load-fontset"></a><h3>pango_font_map_load_fontset ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontset"><span class="returnvalue">PangoFontset</span></a> *      pango_font_map_load_fontset         (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> *fontmap</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>);</pre>
<p>
Load a set of fonts in the fontmap that can be used to render
a font matching <em class="parameter"><code>desc</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fontmap</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>the <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> the font will be used with</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> describing the font to load</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>language</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> the fonts will be used for</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the newly allocated <a class="link" href="pango-Fonts.html#PangoFontset"><span class="type">PangoFontset</span></a>
loaded, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if no font matched. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-map-list-families"></a><h3>pango_font_map_list_families ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                pango_font_map_list_families        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> *fontmap</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontFamily"><span class="type">PangoFontFamily</span></a> ***families</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *n_families</code></em>);</pre>
<p>
List all families for a fontmap.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fontmap</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>families</code></em> :</span></p></td>
<td>location to store a pointer to an array of <a class="link" href="pango-Fonts.html#PangoFontFamily"><span class="type">PangoFontFamily</span></a> *.
This array should be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>. <span class="annotation">[<a href="http://foldoc.org/out"><span class="acronym">out</span></a>][<a href="http://foldoc.org/array"><span class="acronym">array</span></a> length=n_families]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_families</code></em> :</span></p></td>
<td>location to store the number of elements in <em class="parameter"><code>families</code></em>. <span class="annotation">[<a href="http://foldoc.org/out"><span class="acronym">out</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-font-map-get-shape-engine-type"></a><h3>pango_font_map_get_shape_engine_type ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> *        pango_font_map_get_shape_engine_type
                                                        (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a> *fontmap</code></em>);</pre>
<p>
Returns the render ID for shape engines for this fontmap.
See the <em class="structfield"><code>render_type</code></em> field of
<a class="link" href="pango-Engines.html#PangoEngineInfo" title="struct PangoEngineInfo"><span class="type">PangoEngineInfo</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fontmap</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontMap"><span class="type">PangoFontMap</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the ID string for shape engines for
this fontmap. Owned by Pango, should not be modified
or freed.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.4</p>
</div>
<hr>
<div class="refsect2">
<a name="PangoFontset-struct"></a><h3>struct PangoFontset</h3>
<pre class="programlisting">struct PangoFontset;</pre>
<p>
A <a class="link" href="pango-Fonts.html#PangoFontset"><span class="type">PangoFontset</span></a> represents a set of <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> to use
when rendering text. It is the result of resolving a
<a class="link" href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> against a particular <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>.
It has operations for finding the component font for
a particular Unicode character, and for finding a composite
set of metrics for the entire fontset.
</p>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-TYPE-FONTSET:CAPS"></a><h3>PANGO_TYPE_FONTSET</h3>
<pre class="programlisting">#define PANGO_TYPE_FONTSET              (pango_fontset_get_type ())
</pre>
<p>
The <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Fonts.html#PangoFontset"><span class="type">PangoFontset</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="PangoFontsetClass"></a><h3>struct PangoFontsetClass</h3>
<pre class="programlisting">struct PangoFontsetClass {
  GObjectClass parent_class;


  PangoFont *       (*get_font)     (PangoFontset     *fontset,
				     guint             wc);

  PangoFontMetrics *(*get_metrics)  (PangoFontset     *fontset);
  PangoLanguage *   (*get_language) (PangoFontset     *fontset);
  void              (*foreach)      (PangoFontset           *fontset,
				     PangoFontsetForeachFunc func,
				     gpointer                data);
};
</pre>
<p>
The <a class="link" href="pango-Fonts.html#PangoFontsetClass" title="struct PangoFontsetClass"><span class="type">PangoFontsetClass</span></a> structure holds the virtual functions for
a particular <a class="link" href="pango-Fonts.html#PangoFontset"><span class="type">PangoFontset</span></a> implementation.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> <em class="structfield"><code><a name="PangoFontsetClass.parent-class"></a>parent_class</code></em>;</span></p></td>
<td>parent <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="PangoFontsetClass.get-font"></a>get_font</code></em> ()</span></p></td>
<td>a function to get the font in the fontset that contains the
best glyph for the given Unicode character; see <a class="link" href="pango-Fonts.html#pango-fontset-get-font" title="pango_fontset_get_font ()"><code class="function">pango_fontset_get_font()</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="PangoFontsetClass.get-metrics"></a>get_metrics</code></em> ()</span></p></td>
<td>a function to get overall metric information for the fonts
in the fontset; see <a class="link" href="pango-Fonts.html#pango-fontset-get-metrics" title="pango_fontset_get_metrics ()"><code class="function">pango_fontset_get_metrics()</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="PangoFontsetClass.get-language"></a>get_language</code></em> ()</span></p></td>
<td>a function to get the language of the fontset.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="PangoFontsetClass.foreach"></a>foreach</code></em> ()</span></p></td>
<td>a function to loop over the fonts in the fontset. See
<a class="link" href="pango-Fonts.html#pango-fontset-foreach" title="pango_fontset_foreach ()"><code class="function">pango_fontset_foreach()</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-fontset-get-font"></a><h3>pango_fontset_get_font ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFont"><span class="returnvalue">PangoFont</span></a> *         pango_fontset_get_font              (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontset"><span class="type">PangoFontset</span></a> *fontset</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> wc</code></em>);</pre>
<p>
Returns the font in the fontset that contains the best glyph for the
Unicode character <em class="parameter"><code>wc</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fontset</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontset"><span class="type">PangoFontset</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>wc</code></em> :</span></p></td>
<td>a Unicode character</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>. The caller must call
g_object_unref when finished with the font. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-fontset-get-metrics"></a><h3>pango_fontset_get_metrics ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="returnvalue">PangoFontMetrics</span></a> *  pango_fontset_get_metrics           (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontset"><span class="type">PangoFontset</span></a> *fontset</code></em>);</pre>
<p>
Get overall metric information for the fonts in the fontset.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fontset</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontset"><span class="type">PangoFontset</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontMetrics"><span class="type">PangoFontMetrics</span></a> object. The caller must call <a class="link" href="pango-Fonts.html#pango-font-metrics-unref" title="pango_font_metrics_unref ()"><code class="function">pango_font_metrics_unref()</code></a>
when finished using the object.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="PangoFontsetForeachFunc"></a><h3>PangoFontsetForeachFunc ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            (*PangoFontsetForeachFunc)          (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontset"><span class="type">PangoFontset</span></a> *fontset</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
<p>
A callback function used by <a class="link" href="pango-Fonts.html#pango-fontset-foreach" title="pango_fontset_foreach ()"><code class="function">pango_fontset_foreach()</code></a> when enumerating
the fonts in a fontset.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fontset</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontset"><span class="type">PangoFontset</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td>a font from <em class="parameter"><code>fontset</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>callback data</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, stop iteration and return immediately.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.4</p>
</div>
<hr>
<div class="refsect2">
<a name="pango-fontset-foreach"></a><h3>pango_fontset_foreach ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                pango_fontset_foreach               (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontset"><span class="type">PangoFontset</span></a> *fontset</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontsetForeachFunc" title="PangoFontsetForeachFunc ()"><span class="type">PangoFontsetForeachFunc</span></a> func</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
<p>
Iterates through all the fonts in a fontset, calling <em class="parameter"><code>func</code></em> for
each one. If <em class="parameter"><code>func</code></em> returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, that stops the iteration.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fontset</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontset"><span class="type">PangoFontset</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
<td>Callback function. <span class="annotation">[<a href="http://foldoc.org/closure"><span class="acronym">closure</span></a> data][<a href="http://foldoc.org/scope%20call"><span class="acronym">scope call</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>data to pass to the callback function. <span class="annotation">[<a href="http://foldoc.org/closure"><span class="acronym">closure</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.4</p>
</div>
<hr>
<div class="refsect2">
<a name="PangoFontsetSimple-struct"></a><h3>PangoFontsetSimple</h3>
<pre class="programlisting">typedef struct _PangoFontsetSimple PangoFontsetSimple;</pre>
<p>
<a class="link" href="pango-Fonts.html#PangoFontsetSimple"><span class="type">PangoFontsetSimple</span></a> is a implementation of the abstract
<a class="link" href="pango-Fonts.html#PangoFontset"><span class="type">PangoFontset</span></a> base class in terms of an array of fonts,
which the creator provides when constructing the
<a class="link" href="pango-Fonts.html#PangoFontsetSimple"><span class="type">PangoFontsetSimple</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="PANGO-TYPE-FONTSET-SIMPLE:CAPS"></a><h3>PANGO_TYPE_FONTSET_SIMPLE</h3>
<pre class="programlisting">#define PANGO_TYPE_FONTSET_SIMPLE       (pango_fontset_simple_get_type ())
</pre>
<p>
The <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Fonts.html#PangoFontsetSimple"><span class="type">PangoFontsetSimple</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="pango-fontset-simple-new"></a><h3>pango_fontset_simple_new ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontsetSimple"><span class="returnvalue">PangoFontsetSimple</span></a> * pango_fontset_simple_new           (<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>);</pre>
<p>
Creates a new <a class="link" href="pango-Fonts.html#PangoFontsetSimple"><span class="type">PangoFontsetSimple</span></a> for the given language.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>language</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> tag</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the newly allocated <a class="link" href="pango-Fonts.html#PangoFontsetSimple"><span class="type">PangoFontsetSimple</span></a>, which should
be freed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-fontset-simple-append"></a><h3>pango_fontset_simple_append ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                pango_fontset_simple_append         (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontsetSimple"><span class="type">PangoFontsetSimple</span></a> *fontset</code></em>,
                                                         <em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> *font</code></em>);</pre>
<p>
Adds a font to the fontset.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fontset</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontsetSimple"><span class="type">PangoFontsetSimple</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="pango-fontset-simple-size"></a><h3>pango_fontset_simple_size ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 pango_fontset_simple_size           (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoFontsetSimple"><span class="type">PangoFontsetSimple</span></a> *fontset</code></em>);</pre>
<p>
Returns the number of fonts in the fontset.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fontset</code></em> :</span></p></td>
<td>a <a class="link" href="pango-Fonts.html#PangoFontsetSimple"><span class="type">PangoFontsetSimple</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the size of <em class="parameter"><code>fontset</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>